{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport _slicedToArray from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) {\n    if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  }\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport classNames from 'classnames';\n// eslint-disable-next-line import/no-named-as-default\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport defaultRenderEmpty from '../config-provider/defaultRenderEmpty';\nimport { Row } from '../grid';\nimport useBreakpoint from '../grid/hooks/useBreakpoint';\nimport Pagination from '../pagination';\nimport Spin from '../spin';\nimport { responsiveArray } from '../_util/responsiveObserver';\nimport extendsObject from '../_util/extendsObject';\nimport Item from './Item';\n// CSSINJS\nimport useStyle from './style';\nexport var ListContext = /*#__PURE__*/React.createContext({});\nexport var ListConsumer = ListContext.Consumer;\nfunction List(_a) {\n  var _classNames;\n  var _a$pagination = _a.pagination,\n    pagination = _a$pagination === void 0 ? false : _a$pagination,\n    customizePrefixCls = _a.prefixCls,\n    _a$bordered = _a.bordered,\n    bordered = _a$bordered === void 0 ? false : _a$bordered,\n    _a$split = _a.split,\n    split = _a$split === void 0 ? true : _a$split,\n    className = _a.className,\n    children = _a.children,\n    itemLayout = _a.itemLayout,\n    loadMore = _a.loadMore,\n    grid = _a.grid,\n    _a$dataSource = _a.dataSource,\n    dataSource = _a$dataSource === void 0 ? [] : _a$dataSource,\n    size = _a.size,\n    header = _a.header,\n    footer = _a.footer,\n    _a$loading = _a.loading,\n    loading = _a$loading === void 0 ? false : _a$loading,\n    rowKey = _a.rowKey,\n    renderItem = _a.renderItem,\n    locale = _a.locale,\n    rest = __rest(_a, [\"pagination\", \"prefixCls\", \"bordered\", \"split\", \"className\", \"children\", \"itemLayout\", \"loadMore\", \"grid\", \"dataSource\", \"size\", \"header\", \"footer\", \"loading\", \"rowKey\", \"renderItem\", \"locale\"]);\n  var paginationObj = pagination && typeof pagination === 'object' ? pagination : {};\n  var _React$useState = React.useState(paginationObj.defaultCurrent || 1),\n    _React$useState2 = _slicedToArray(_React$useState, 2),\n    paginationCurrent = _React$useState2[0],\n    setPaginationCurrent = _React$useState2[1];\n  var _React$useState3 = React.useState(paginationObj.defaultPageSize || 10),\n    _React$useState4 = _slicedToArray(_React$useState3, 2),\n    paginationSize = _React$useState4[0],\n    setPaginationSize = _React$useState4[1];\n  var _React$useContext = React.useContext(ConfigContext),\n    getPrefixCls = _React$useContext.getPrefixCls,\n    renderEmpty = _React$useContext.renderEmpty,\n    direction = _React$useContext.direction;\n  var defaultPaginationProps = {\n    current: 1,\n    total: 0\n  };\n  var triggerPaginationEvent = function triggerPaginationEvent(eventName) {\n    return function (page, pageSize) {\n      setPaginationCurrent(page);\n      setPaginationSize(pageSize);\n      if (pagination && pagination[eventName]) {\n        pagination[eventName](page, pageSize);\n      }\n    };\n  };\n  var onPaginationChange = triggerPaginationEvent('onChange');\n  var onPaginationShowSizeChange = triggerPaginationEvent('onShowSizeChange');\n  var renderInnerItem = function renderInnerItem(item, index) {\n    if (!renderItem) return null;\n    var key;\n    if (typeof rowKey === 'function') {\n      key = rowKey(item);\n    } else if (rowKey) {\n      key = item[rowKey];\n    } else {\n      key = item.key;\n    }\n    if (!key) {\n      key = \"list-item-\".concat(index);\n    }\n    return /*#__PURE__*/React.createElement(React.Fragment, {\n      key: key\n    }, renderItem(item, index));\n  };\n  var isSomethingAfterLastItem = function isSomethingAfterLastItem() {\n    return !!(loadMore || pagination || footer);\n  };\n  var renderEmptyFunc = function renderEmptyFunc(prefixCls, renderEmptyHandler) {\n    return /*#__PURE__*/React.createElement(\"div\", {\n      className: \"\".concat(prefixCls, \"-empty-text\")\n    }, locale && locale.emptyText || renderEmptyHandler('List'));\n  };\n  var prefixCls = getPrefixCls('list', customizePrefixCls);\n  // Style\n  var _useStyle = useStyle(prefixCls),\n    _useStyle2 = _slicedToArray(_useStyle, 2),\n    wrapSSR = _useStyle2[0],\n    hashId = _useStyle2[1];\n  var loadingProp = loading;\n  if (typeof loadingProp === 'boolean') {\n    loadingProp = {\n      spinning: loadingProp\n    };\n  }\n  var isLoading = loadingProp && loadingProp.spinning;\n  // large => lg\n  // small => sm\n  var sizeCls = '';\n  switch (size) {\n    case 'large':\n      sizeCls = 'lg';\n      break;\n    case 'small':\n      sizeCls = 'sm';\n      break;\n    default:\n      break;\n  }\n  var classString = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-vertical\"), itemLayout === 'vertical'), _defineProperty(_classNames, \"\".concat(prefixCls, \"-\").concat(sizeCls), sizeCls), _defineProperty(_classNames, \"\".concat(prefixCls, \"-split\"), split), _defineProperty(_classNames, \"\".concat(prefixCls, \"-bordered\"), bordered), _defineProperty(_classNames, \"\".concat(prefixCls, \"-loading\"), isLoading), _defineProperty(_classNames, \"\".concat(prefixCls, \"-grid\"), !!grid), _defineProperty(_classNames, \"\".concat(prefixCls, \"-something-after-last-item\"), isSomethingAfterLastItem()), _defineProperty(_classNames, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), _classNames), className, hashId);\n  var paginationProps = extendsObject(defaultPaginationProps, {\n    total: dataSource.length,\n    current: paginationCurrent,\n    pageSize: paginationSize\n  }, pagination || {});\n  var largestPage = Math.ceil(paginationProps.total / paginationProps.pageSize);\n  if (paginationProps.current > largestPage) {\n    paginationProps.current = largestPage;\n  }\n  var paginationContent = pagination ? /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-pagination\")\n  }, /*#__PURE__*/React.createElement(Pagination, Object.assign({}, paginationProps, {\n    onChange: onPaginationChange,\n    onShowSizeChange: onPaginationShowSizeChange\n  }))) : null;\n  var splitDataSource = _toConsumableArray(dataSource);\n  if (pagination) {\n    if (dataSource.length > (paginationProps.current - 1) * paginationProps.pageSize) {\n      splitDataSource = _toConsumableArray(dataSource).splice((paginationProps.current - 1) * paginationProps.pageSize, paginationProps.pageSize);\n    }\n  }\n  var needResponsive = Object.keys(grid || {}).some(function (key) {\n    return ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].includes(key);\n  });\n  var screens = useBreakpoint(needResponsive);\n  var currentBreakpoint = React.useMemo(function () {\n    for (var i = 0; i < responsiveArray.length; i += 1) {\n      var breakpoint = responsiveArray[i];\n      if (screens[breakpoint]) {\n        return breakpoint;\n      }\n    }\n    return undefined;\n  }, [screens]);\n  var colStyle = React.useMemo(function () {\n    if (!grid) {\n      return undefined;\n    }\n    var columnCount = currentBreakpoint && grid[currentBreakpoint] ? grid[currentBreakpoint] : grid.column;\n    if (columnCount) {\n      return {\n        width: \"\".concat(100 / columnCount, \"%\"),\n        maxWidth: \"\".concat(100 / columnCount, \"%\")\n      };\n    }\n  }, [grid === null || grid === void 0 ? void 0 : grid.column, currentBreakpoint]);\n  var childrenContent = isLoading && /*#__PURE__*/React.createElement(\"div\", {\n    style: {\n      minHeight: 53\n    }\n  });\n  if (splitDataSource.length > 0) {\n    var items = splitDataSource.map(function (item, index) {\n      return renderInnerItem(item, index);\n    });\n    childrenContent = grid ? /*#__PURE__*/React.createElement(Row, {\n      gutter: grid.gutter\n    }, React.Children.map(items, function (child) {\n      return /*#__PURE__*/React.createElement(\"div\", {\n        key: child === null || child === void 0 ? void 0 : child.key,\n        style: colStyle\n      }, child);\n    })) : /*#__PURE__*/React.createElement(\"ul\", {\n      className: \"\".concat(prefixCls, \"-items\")\n    }, items);\n  } else if (!children && !isLoading) {\n    childrenContent = renderEmptyFunc(prefixCls, renderEmpty || defaultRenderEmpty);\n  }\n  var paginationPosition = paginationProps.position || 'bottom';\n  var contextValue = React.useMemo(function () {\n    return {\n      grid: grid,\n      itemLayout: itemLayout\n    };\n  }, [JSON.stringify(grid), itemLayout]);\n  return wrapSSR( /*#__PURE__*/React.createElement(ListContext.Provider, {\n    value: contextValue\n  }, /*#__PURE__*/React.createElement(\"div\", Object.assign({\n    className: classString\n  }, rest), (paginationPosition === 'top' || paginationPosition === 'both') && paginationContent, header && /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-header\")\n  }, header), /*#__PURE__*/React.createElement(Spin, Object.assign({}, loadingProp), childrenContent, children), footer && /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-footer\")\n  }, footer), loadMore || (paginationPosition === 'bottom' || paginationPosition === 'both') && paginationContent)));\n}\nList.Item = Item;\nexport default List;","map":{"version":3,"names":["_toConsumableArray","__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","classNames","React","ConfigContext","defaultRenderEmpty","Row","useBreakpoint","Pagination","Spin","responsiveArray","extendsObject","Item","useStyle","ListContext","createContext","ListConsumer","Consumer","List","_a","pagination","customizePrefixCls","prefixCls","bordered","split","className","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale","rest","paginationObj","useState","defaultCurrent","paginationCurrent","setPaginationCurrent","defaultPageSize","paginationSize","setPaginationSize","useContext","getPrefixCls","renderEmpty","direction","defaultPaginationProps","current","total","triggerPaginationEvent","eventName","page","pageSize","onPaginationChange","onPaginationShowSizeChange","renderInnerItem","item","index","key","createElement","Fragment","isSomethingAfterLastItem","renderEmptyFunc","renderEmptyHandler","emptyText","wrapSSR","hashId","loadingProp","spinning","isLoading","sizeCls","classString","paginationProps","largestPage","Math","ceil","paginationContent","assign","onChange","onShowSizeChange","splitDataSource","splice","needResponsive","keys","some","includes","screens","currentBreakpoint","useMemo","breakpoint","undefined","colStyle","columnCount","column","width","maxWidth","childrenContent","style","minHeight","items","map","gutter","Children","child","paginationPosition","position","contextValue","JSON","stringify","Provider","value"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/list/index.js"],"sourcesContent":["import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport classNames from 'classnames';\n// eslint-disable-next-line import/no-named-as-default\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport defaultRenderEmpty from '../config-provider/defaultRenderEmpty';\nimport { Row } from '../grid';\nimport useBreakpoint from '../grid/hooks/useBreakpoint';\nimport Pagination from '../pagination';\nimport Spin from '../spin';\nimport { responsiveArray } from '../_util/responsiveObserver';\nimport extendsObject from '../_util/extendsObject';\nimport Item from './Item';\n// CSSINJS\nimport useStyle from './style';\nexport const ListContext = /*#__PURE__*/React.createContext({});\nexport const ListConsumer = ListContext.Consumer;\nfunction List(_a) {\n  var {\n      pagination = false,\n      prefixCls: customizePrefixCls,\n      bordered = false,\n      split = true,\n      className,\n      children,\n      itemLayout,\n      loadMore,\n      grid,\n      dataSource = [],\n      size,\n      header,\n      footer,\n      loading = false,\n      rowKey,\n      renderItem,\n      locale\n    } = _a,\n    rest = __rest(_a, [\"pagination\", \"prefixCls\", \"bordered\", \"split\", \"className\", \"children\", \"itemLayout\", \"loadMore\", \"grid\", \"dataSource\", \"size\", \"header\", \"footer\", \"loading\", \"rowKey\", \"renderItem\", \"locale\"]);\n  const paginationObj = pagination && typeof pagination === 'object' ? pagination : {};\n  const [paginationCurrent, setPaginationCurrent] = React.useState(paginationObj.defaultCurrent || 1);\n  const [paginationSize, setPaginationSize] = React.useState(paginationObj.defaultPageSize || 10);\n  const {\n    getPrefixCls,\n    renderEmpty,\n    direction\n  } = React.useContext(ConfigContext);\n  const defaultPaginationProps = {\n    current: 1,\n    total: 0\n  };\n  const triggerPaginationEvent = eventName => (page, pageSize) => {\n    setPaginationCurrent(page);\n    setPaginationSize(pageSize);\n    if (pagination && pagination[eventName]) {\n      pagination[eventName](page, pageSize);\n    }\n  };\n  const onPaginationChange = triggerPaginationEvent('onChange');\n  const onPaginationShowSizeChange = triggerPaginationEvent('onShowSizeChange');\n  const renderInnerItem = (item, index) => {\n    if (!renderItem) return null;\n    let key;\n    if (typeof rowKey === 'function') {\n      key = rowKey(item);\n    } else if (rowKey) {\n      key = item[rowKey];\n    } else {\n      key = item.key;\n    }\n    if (!key) {\n      key = `list-item-${index}`;\n    }\n    return /*#__PURE__*/React.createElement(React.Fragment, {\n      key: key\n    }, renderItem(item, index));\n  };\n  const isSomethingAfterLastItem = () => !!(loadMore || pagination || footer);\n  const renderEmptyFunc = (prefixCls, renderEmptyHandler) => /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-empty-text`\n  }, locale && locale.emptyText || renderEmptyHandler('List'));\n  const prefixCls = getPrefixCls('list', customizePrefixCls);\n  // Style\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  let loadingProp = loading;\n  if (typeof loadingProp === 'boolean') {\n    loadingProp = {\n      spinning: loadingProp\n    };\n  }\n  const isLoading = loadingProp && loadingProp.spinning;\n  // large => lg\n  // small => sm\n  let sizeCls = '';\n  switch (size) {\n    case 'large':\n      sizeCls = 'lg';\n      break;\n    case 'small':\n      sizeCls = 'sm';\n      break;\n    default:\n      break;\n  }\n  const classString = classNames(prefixCls, {\n    [`${prefixCls}-vertical`]: itemLayout === 'vertical',\n    [`${prefixCls}-${sizeCls}`]: sizeCls,\n    [`${prefixCls}-split`]: split,\n    [`${prefixCls}-bordered`]: bordered,\n    [`${prefixCls}-loading`]: isLoading,\n    [`${prefixCls}-grid`]: !!grid,\n    [`${prefixCls}-something-after-last-item`]: isSomethingAfterLastItem(),\n    [`${prefixCls}-rtl`]: direction === 'rtl'\n  }, className, hashId);\n  const paginationProps = extendsObject(defaultPaginationProps, {\n    total: dataSource.length,\n    current: paginationCurrent,\n    pageSize: paginationSize\n  }, pagination || {});\n  const largestPage = Math.ceil(paginationProps.total / paginationProps.pageSize);\n  if (paginationProps.current > largestPage) {\n    paginationProps.current = largestPage;\n  }\n  const paginationContent = pagination ? /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-pagination`\n  }, /*#__PURE__*/React.createElement(Pagination, Object.assign({}, paginationProps, {\n    onChange: onPaginationChange,\n    onShowSizeChange: onPaginationShowSizeChange\n  }))) : null;\n  let splitDataSource = _toConsumableArray(dataSource);\n  if (pagination) {\n    if (dataSource.length > (paginationProps.current - 1) * paginationProps.pageSize) {\n      splitDataSource = _toConsumableArray(dataSource).splice((paginationProps.current - 1) * paginationProps.pageSize, paginationProps.pageSize);\n    }\n  }\n  const needResponsive = Object.keys(grid || {}).some(key => ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].includes(key));\n  const screens = useBreakpoint(needResponsive);\n  const currentBreakpoint = React.useMemo(() => {\n    for (let i = 0; i < responsiveArray.length; i += 1) {\n      const breakpoint = responsiveArray[i];\n      if (screens[breakpoint]) {\n        return breakpoint;\n      }\n    }\n    return undefined;\n  }, [screens]);\n  const colStyle = React.useMemo(() => {\n    if (!grid) {\n      return undefined;\n    }\n    const columnCount = currentBreakpoint && grid[currentBreakpoint] ? grid[currentBreakpoint] : grid.column;\n    if (columnCount) {\n      return {\n        width: `${100 / columnCount}%`,\n        maxWidth: `${100 / columnCount}%`\n      };\n    }\n  }, [grid === null || grid === void 0 ? void 0 : grid.column, currentBreakpoint]);\n  let childrenContent = isLoading && /*#__PURE__*/React.createElement(\"div\", {\n    style: {\n      minHeight: 53\n    }\n  });\n  if (splitDataSource.length > 0) {\n    const items = splitDataSource.map((item, index) => renderInnerItem(item, index));\n    childrenContent = grid ? /*#__PURE__*/React.createElement(Row, {\n      gutter: grid.gutter\n    }, React.Children.map(items, child => /*#__PURE__*/React.createElement(\"div\", {\n      key: child === null || child === void 0 ? void 0 : child.key,\n      style: colStyle\n    }, child))) : /*#__PURE__*/React.createElement(\"ul\", {\n      className: `${prefixCls}-items`\n    }, items);\n  } else if (!children && !isLoading) {\n    childrenContent = renderEmptyFunc(prefixCls, renderEmpty || defaultRenderEmpty);\n  }\n  const paginationPosition = paginationProps.position || 'bottom';\n  const contextValue = React.useMemo(() => ({\n    grid,\n    itemLayout\n  }), [JSON.stringify(grid), itemLayout]);\n  return wrapSSR( /*#__PURE__*/React.createElement(ListContext.Provider, {\n    value: contextValue\n  }, /*#__PURE__*/React.createElement(\"div\", Object.assign({\n    className: classString\n  }, rest), (paginationPosition === 'top' || paginationPosition === 'both') && paginationContent, header && /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-header`\n  }, header), /*#__PURE__*/React.createElement(Spin, Object.assign({}, loadingProp), childrenContent, children), footer && /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-footer`\n  }, footer), loadMore || (paginationPosition === 'bottom' || paginationPosition === 'both') && paginationContent)));\n}\nList.Item = Item;\nexport default List;"],"mappings":";;AAAA,OAAOA,kBAAkB,MAAM,8CAA8C;AAC7E,IAAIC,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC;IAAE,IAAII,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,CAAC,EAAEG,CAAC,CAAC,IAAIF,CAAC,CAACO,OAAO,CAACL,CAAC,CAAC,GAAG,CAAC,EAAED,CA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